
public class Date {
	
	private int day;
	private int month;
	private int year;
	
	Date(){
		
		
		this.day = 0;
		this.month = 0;
		this.year = 0;
	}
	
	Date(int day, int month, int year){
		this.day = day;
		this.month = month;
		this.year = year;
		
	}
	
	
	public int getDay() {
		return day;
	}
	public void setDay(int day) {
		this.day = day;
	}
	public int getMonth() {
		return month;
	}
	public void setMonth(int month) {
		this.month = month;
	}
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	
	public boolean equals(Object object){
		
		if(object instanceof Date){
		Date date = (Date) object;
		
		return getDay() == date.getDay()
				&& getMonth() == date.getMonth()
				&& getYear() == date.getYear();
		
	}
		
		return false;
	}

}
